﻿package com.vigmonk.events{
	
	import flash.events.Event;
	
	/**
	 * 
	 * CustomEvent.as
	 * @author VIGMONK
	 * 
	 */
	 	public class CustomEvent extends Event 
	{
		private var evntData:Object;
		
		public function CustomEvent( _type:String, _data:Object=null, _bubbles:Boolean = false, _cancelable:Boolean = false):void 
		{
			super( _type,_bubbles,_cancelable);
			this.evntData = _data;	
		}
		public function get data():Object
		{
			return evntData;
		}
		override public function toString():String 
		{
			return '[ Type : '+this.type+' Data : '+data+''+' bubbles : '+bubbles+' cancelable : '+cancelable+']';
		}
	}
}